<?php

namespace Apps\AppApi\Method\Question;

use Apps\AppApi\Method\BaseMethod;
use Apps\Common\Models\QuestionHotWords;

/**
 * 获取问答的热搜词
 */
class HotWords extends BaseMethod
{
    public function run()
    {
        $this->setResult(QuestionHotWords::query()->columns(['title'])->where('status = 1')->execute()->toArray());
    }

}